<?php
/* 
 * Copyright (c) 2018-2020 http://www.levme.com All rights reserved.
 * 
 * 创建时间：2020-12-07 18:30
 *
 * 项目：gitee  -  $  - common.php
 *
 * 作者：liwei  Levme.com <675049572@qq.com>
 */

/* @var $v array */
/* @var $openLast array */
?>
<div class="with-toolbar mb_bbs tabSameTab tab tab-<?=$v['tabid']?>" data-id="<?=$v['tabid']?>">
    <div class="page-content mb_bbs_c appbg" style="padding-top: 0">
        <div class="preloader preloader-white initLoader" style="margin:auto;display: flex;"></div>
        <div class="page-content-inner" style="padding:70px 0 0;display: none;max-width:<?=$v['width']?:'calc(100% - 40px)'?>;">
            <div class="tab-contentv">

                <div class="init-data-box"><?php include __DIR__ . '/initdata.php'?></div>

                <div class="listLoadBox virtual-list" page="<?=$v['page']?>" url="<?=$v['url']?>" not="<?=$v['not']?>"></div>
            </div>

            <?php if ($v['url']):?>
            <div class="date infinite-scroll-preloader hiddenx" style="transform: scale(0.5) !important;margin: 7px;"><div class="preloader preloader-red"></div></div>
            <a class="date loadStart <?=$v['loadStart']?>" style="display:none" data-box=".tab-<?=$v['tabid']?> "><?=$v['loadStartTip']?></a>
            <?php endif;?>

            <div class="card buttons-row borad">
                <a class="button button-fill color-yellow" href="<?=\modules\levfm\helpers\UrlfmHelper::lists($formInfo['id'])?>">
                    <svg class="icon inblk scale9 font14"><use xlink:href="#fa-almanac"></use></svg>
                </a>
                <?php if (!empty($totalitemBtn)) foreach ($totalitemBtn as $v):?>
                <a class="button button-fill color-orange" href="<?=\modules\levfm\helpers\UrlfmHelper::forms(0, $formInfo['id'], $v['day'])?>">
                    <?=$v['name']?>
                </a>
                <?php endforeach;?>
            </div>

            <div class="flex-box ju-sa color-yellow font12 scale9"><?=$formInfo['name']?>累计参与用户投票数量：<?=Lev::formatNumber($formInfo['totalnum']+\modules\levfm\table\form\FormData\totalitemHelper::addtimeTotal($formInfo))?></div>

            <div class="flex-box ju-sa color-yellow font12 scale9"><?=$formInfo['descs']?></div>

            <?php Lev::footer()?>
        </div>

    </div>

<div class="LoadPageAjaxJS">
<script>
    jQuery(function () {
    });
</script>
</div>

</div>